package com.fashionista;

/**
 * A class to contain data for each clothing item in clothing.xml
 * 
 * @author Trevor Adelman, Patrick Koperwas, Tong Wu, Shayan Yassami
 * @version for cs48 group project, 3/11/2011
 */
public class ClothingItems {
	public String name;
	public String type;
	public String weather;
	public String resourceId;
	public String id;
	
	/**
	 * Default constructor for ClothingItems
	 */
	public ClothingItems() {
	}

	/**
	 * Arguments constructor for ClothingItems
	 * 
	 * @param name The name of the clothing piece
	 * @param type The type of clothing article
	 * @param weather The weather that the clothing should be worn in
	 * @param imgIdPath The name of the image icon that the clothing items uses
	 */
	public ClothingItems(String name, String type, String weather, String id, 
			String imgIdPath) {
		this.name = name;
		this.type = type;
		this.weather = weather;
		this.id = id;
		this.resourceId = imgIdPath;
	}
	
	/**
	 * Method to return the name of a clothing item
	 * @return name of clothing
	 */
	public String getName(){
		return this.name;
	}
	
	/**
	 * Method to return the weather attribute of the clothing item
	 * @return weather attribute of the item
	 */
	public String getWeather(){
		return this.weather;
	}
	
	/**
	 * Method to get the ID of the clothing item
	 * @return id of the clothing piece in the R.drawable class
	 */
	public Integer getID(){
		Integer newID = Integer.parseInt(id);
		return newID;
	}
	
	/**
	 * Method to return the type of clothing that the item is
	 * @return the type of clothing
	 */
	public String getType(){
		return this.type;
	}
	
	@Override
	/**
	 * A method to return the name of the item as a String
	 * 
	 * @return the name as a String
	 */
	public String toString() {
		return name;
	}
}
